package com.pipayshop.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.pipayshop.domain.ShopCommodityHistory;
import com.pipayshop.domain.vo.ShopCommodityCollectionVo;
import com.pipayshop.domain.vo.ShopCommodityListVo;
import com.pipayshop.domain.vo.ShopCommodityMinVo;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * @author xiaoqiu
 * @date 2024/9/23 10:34
 * @description
 */
@Mapper
public interface OnlineStoreShopCommodityHistoryMapper extends BaseMapper<ShopCommodityHistory> {
    void orderDeleteHistory();



    /**
     * 根据用户id浏览网店商品的历史记录
     * @return
     */
//    List<ShopCommodityMinVo> getHistory(String userId);
    Integer selectAllHistoryProductByUserId(@Param("userId") String userId);
    List<ShopCommodityListVo> getHistory(@Param("page") Integer page, @Param("limit") Integer limit, @Param("userId") String userId);

}
